package cuit.demo.Entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Entity
@Table(name = "t_user")
public class User {
    @Id
    private int userid;
    private String username;
    private String userpwd; // 密码字段
    private String usersex;
    private String email;
    private String phone;

    // Getters and Setters
    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {return userpwd;}

    public void setUserpwd(String userpwd) {this.userpwd = userpwd;}

    public String getUsersex() {return usersex;}

    public void setUsersex(String usersex) {this.usersex = usersex;}

    public String getEmail() {return email;}

    public void setEmail(String email) {this.email = email;}

    public String getPhone() {return phone;}

    public void setPhone(String phone) {this.phone = phone;}
}